﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using canthovieclam.BL.Models;
using canthovieclam.DAL.Repositories;

namespace canthovieclam.BL
{
    public class CountryImpl
    {
        public List<CountryModel> GetCountryList()
        {
            var countryRepository = new CountryRepository();
            var listCountryModel = (from x in countryRepository.GetAllCountry()
                                    select new CountryModel(x)).ToList();

            return listCountryModel;
        }
    }
}
